<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Tree - jQuery EasyUI Demo</title>
	<link rel="stylesheet" href="../css/default/easyui.css" type="text/css" />
	<link rel="stylesheet" href="../css/icon.css" type="text/css" />
	<link rel="stylesheet" href="demo.css" type="text/css" />
	<SCRIPT LANGUAGE="JavaScript" src="../js/jquery-1.7.1.min.js"></SCRIPT>
	<SCRIPT LANGUAGE="JavaScript" src="../js/jquery.easyui.min.js"></SCRIPT>
	<script type="text/javascript" src="../js/input.js"></script>
	
	<script type="text/javascript">

	  
var data = [{"id":1,"text":"Java"},{"id":2,"text":"C#"},{"id":3,"text":"Ruby","selected":true},{"id":4,"text":"Perl"},{"id":5,"text":"Basic"}];

 var input;
	$(function(){
		input = new UI_Input("tt",data);
	});

	</script>
</head>
<body>
	
	<hr></hr>
	<div style="margin:10px 0;">
<a href="#"  onclick="javascript:alert(input.getValue())">GetValue</a>	 
    </div>

<input id="tt"  name="language"  valueField="id"  textField="text"  style="width:200px">
			
</body>
</html>